package com.allwees.bs.module.fms.service.impl;

import com.allwees.bs.core.modelbase.branch.BranchUser;
import com.allwees.bs.module.base.service.impl.BoServiceImpl;
import com.allwees.bs.module.fms.dao.MerchantAccountLogDao;
import com.allwees.bs.module.fms.entity.MerchantAccountLog;
import com.allwees.bs.module.fms.entity.MerchantWithdrawAccount;
import com.allwees.bs.module.fms.service.MerchantAccountLogService;
import com.allwees.bs.module.fms.service.MerchantWithdrawAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 *
 * @author yangylsky
 * @since 2019-12-12
 *
 */
@Service
public class MerchantAccountServiceLogImpl extends BoServiceImpl<MerchantAccountLogDao, MerchantAccountLog> implements MerchantAccountLogService {

    @Autowired
    private MerchantWithdrawAccountService merchantWithdrawAccountService;


    public List<MerchantWithdrawAccount> findAllWithdrawAccount( BranchUser user) {
        return merchantWithdrawAccountService.findAllWithdrawAccount(user.getBranchType(), user.getBranchUuid());
    }

}
